package cn.talkimages.web.admin.actions.keyword;

import cn.talkimages.framework.beans.PageList;
import cn.talkimages.web.admin.constant.ConfkeyDef;
import cn.talkimages.web.beans.KeywordBean;

public class KeywordListAction extends KeywordAction {

	private static final long serialVersionUID = -562333122261629996L;

	private PageList<KeywordBean> keywordList;

	private String name;

	/**
	 * 显示关键字一览
	 * 
	 * @throws Exception
	 */
	public String list() throws Exception {

		keywordList = keywordService.getKeywordInfosByName(name, getPageNo(),
				getConfIntValue(ConfkeyDef.Keyword.KEYWORD_LIST_PAGESIZE));

		return SUCCESS;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public PageList<KeywordBean> getKeywordList() {
		return keywordList;
	}

	public void setKeywordList(PageList<KeywordBean> keywordList) {
		this.keywordList = keywordList;
	}

}
